<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Check Books From P.O</title>
</head>
<body>
	<h1 align="center">Accept Orders From Publishing Office</h1>
	<br />
	<c:if test="${empty listFromPublish}">
		<p>You haven't orders from publishing office.</p>
	</c:if>
	<c:if test="${not empty listFromPublish}">
		<table align="center" border="1" cellpadding="10" cellspacing="0">
			<tr>
				<th>Title Of The Book</th>
				<th>Client</th>
				<th>Order Date</th>
				<th>Delivery Address</th>
				<th>Count</th>
				<th>Publisher Price For One Book</th>
				<th>Accept</th>
			</tr>

			<c:forEach items="${listFromPublish}" var="order">
				<tr>
					<td align="center">${order.book.name}</td>
					<td align="center">${order.buyer.surname}</td>
					<td align="center">${order.date}</td>
					<td align="center">${order.address}</td>
					<td align="center">${order.count}</td>
					<td align="center">${order.publishPrice}</td>
					<td align="center"><a href="markup${order.id}">accept</a></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>

</body>
</html>